﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.mssql;

namespace SharpSqlAnalyzer.stmt.mssql
{
	// Token: 0x02000181 RID: 385
	public class TMssqlRevert : TCustomSqlStatement
	{
		// Token: 0x06000D7D RID: 3453 RVA: 0x00308C3A File Offset: 0x00306E3A
		public TMssqlRevert(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmssqlrevert;
		}

		// Token: 0x06000D7E RID: 3454 RVA: 0x00308C4E File Offset: 0x00306E4E
		internal override void buildsql()
		{
		}

		// Token: 0x06000D7F RID: 3455 RVA: 0x00308C50 File Offset: 0x00306E50
		internal override void clear()
		{
		}

		// Token: 0x06000D80 RID: 3456 RVA: 0x00308C52 File Offset: 0x00306E52
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000D81 RID: 3457 RVA: 0x00308C59 File Offset: 0x00306E59
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x17000277 RID: 631
		// (get) Token: 0x06000D83 RID: 3459 RVA: 0x00308C64 File Offset: 0x00306E64
		// (set) Token: 0x06000D82 RID: 3458 RVA: 0x00308C5B File Offset: 0x00306E5B
		public virtual TObjectName Cookie
		{
			get
			{
				return this.cookie;
			}
			set
			{
				this.cookie = value;
			}
		}

		// Token: 0x06000D84 RID: 3460 RVA: 0x00308C6C File Offset: 0x00306E6C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TMssqlRevertSqlNode tmssqlRevertSqlNode = (TMssqlRevertSqlNode)this.rootNode;
			this.cookie = tmssqlRevertSqlNode.Cookie;
			base.doParseStatement(psql);
			return 0;
		}

		// Token: 0x06000D85 RID: 3461 RVA: 0x00308CA4 File Offset: 0x00306EA4
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000D86 RID: 3462 RVA: 0x00308CB4 File Offset: 0x00306EB4
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400130F RID: 4879
		private TObjectName cookie;
	}
}
